
const state = {
	pageLoading: false,
	confirmModal: {
		visible: false,
		text: '',
		callBack: null
	},
}

const actions = {
	
}

const mutations = {
	setPageLoading(state, data) {
		state.pageLoading = data
	},
	showConfirmModal(state, data) {
		state.confirmModal = {
			visible: true,
			text: data.text,
			callBack: data.success
		}
	},
	closeConfirmModal(state, data) {
		state.confirmModal = {
			visible: false,
			text: '',
			callBack: null
		}
	}
}
export default {
	namespaced: true,
	state, 
	actions, 
	mutations
}